// 引入通用 自定义指令
const Theme = import.meta.globEager('./Theme/*.less');

// UI 状态管理
const state = {
    theme: 'dark'
};
const getters = {

};
const mutations = {
    changeTheme(state, value) {
        var html = document.getElementsByTagName('html')[0];
        html.className = value;
        if (state) {
            state.theme = value;
        }
    }
};
mutations.changeTheme(null, 'dark');

const actions = {

};
export default {
    namespaced: true,
    state,
    getters,
    mutations,
    actions
}